{% extends "base.html" %}
{% block title %} Oferty {% endblock %}

{% block content %}
<style>
	#content-div {
		padding:0;
	}
	#ad {
		padding:10px;
		margin-right:325px;
		height:100%;
	}
	#author {
		padding:10px;
		width:300px;
		height:100%;
		float:right;
		border:2px solid #f58193;
	}
	
	#details {
		border:2px solid floralwhite;
		padding:5px;
	}
</style>
<div id="ad">
	<h1> Oferty w serwisie TX i MY: </h1>
	
	{% for ad in adverts %}
	
	<p><a href="/advertisements/{{ ad.id }}">{{ ad.city }} , {{ ad.street }}</a><p>
     
	{% endfor %}
</div>
<div id="author">
	<a href="/advertisements/add/">Dodaj własną reklamę!</a>
</div>
	
{% endblock %}
